import pytest
from pageobj.login_page import LoginPage
from selenium import webdriver


@pytest.mark.parametrize("username, password, bool_flag",
                         [("870423381@qq.com", "myb19951226.", True), ("xxxx", "xxxx", False)])
def test_login(username, password, bool_flag):
    driver = webdriver.Chrome()
    login_obj = LoginPage(driver=driver)
    login_obj.login(username, password)
